package Horse;

public class Horse {
    public static void main(String[] args){
            int N = 100;
            for (int i = 0; i <= N; i++) {
                for (int x = 0; x <= N; x++) {
                    for (int y = 0; y <= N; y++) {
                        if (i + x + y == N && 3 * i + 2 * x + y / 2 == N && y % 2 == 0) {
                            System.out.println(i + " " + " " + x + " " + y);
                        }
                    }
                }
            }
        }

}
